<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/addpersoncommit} " method="post">
  用户名：<input name="name"><br>
  年龄：<input name="age">
  <div><input type="submit" value="提交"></div>
</form>
</body>
</html>